package com.example.feign.impl;

import com.example.domain.Student;
import com.example.feign.FeignProviderMethods;
import org.springframework.stereotype.Component;

import java.util.List;

@Component  //feign接口调用服务降级方法处理
public class FeignHystrixError implements FeignProviderMethods {

    @Override
    public List<Student> findAllStudent() {
        return null;
    }

    @Override
    public Student findStudentById(Long id) {
        return null;
    }

    @Override
    public Student saveStudent(Student student) {
        return null;
    }

    @Override
    public Student updateStudent(Student student) {
        return null;
    }

    @Override
    public Boolean deleteStudentById(Long id) {
        return null;
    }

    @Override
    public String index() {
        return "服务提供者关闭或正在维护中。。。";
    }
}
